package kr.hkit.summary_java.service;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.GridLayout;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class PanelDepartmentUI extends JPanel {
	private JTextField tfDeptNo;
	private JTextField tfDeptName;
	private JTextField tfDeptFloor;

	/**
	 * Create the panel.
	 */
	public PanelDepartmentUI() {

		initialize();
	}
	private void initialize() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel_Center = new JPanel();
		add(panel_Center, BorderLayout.CENTER);
		panel_Center.setLayout(new GridLayout(0, 2, 0, 0));
		
		JLabel lblDeptNo = new JLabel("부서번호");
		lblDeptNo.setHorizontalAlignment(SwingConstants.CENTER);
		panel_Center.add(lblDeptNo);
		
		tfDeptNo = new JTextField();
		panel_Center.add(tfDeptNo);
		tfDeptNo.setColumns(10);
		
		JLabel lblDeptName = new JLabel("부서명");
		lblDeptName.setHorizontalAlignment(SwingConstants.CENTER);
		panel_Center.add(lblDeptName);
		
		tfDeptName = new JTextField();
		panel_Center.add(tfDeptName);
		tfDeptName.setColumns(10);
		
		JLabel lblDeptFloor = new JLabel("위치");
		lblDeptFloor.setHorizontalAlignment(SwingConstants.CENTER);
		panel_Center.add(lblDeptFloor);
		
		tfDeptFloor = new JTextField();
		panel_Center.add(tfDeptFloor);
		tfDeptFloor.setColumns(10);
		
		JPanel panel_Bottom = new JPanel();
		add(panel_Bottom, BorderLayout.SOUTH);
		
		JButton btnAdd = new JButton("추가");
		panel_Bottom.add(btnAdd);
	}

}
